package com.accloud.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ACFeedback {
    private ACObject extend = new ACObject();
    private Map<String, List<byte[]>> pictureMap = new HashMap();
    private int pictureNum = 0;
    protected String subDomain;
    protected String type;

    public String getSubDomain() {
        return this.subDomain;
    }

    public void setSubDomain(String subDomain2) {
        this.subDomain = subDomain2;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type2) {
        this.type = type2;
    }

    public ACObject getExtend() {
        return this.extend;
    }

    public Map<String, List<byte[]>> getPictureMap() {
        return this.pictureMap;
    }

    public void addFeedback(String key, Object value) {
        this.extend.put(key, value);
    }

    public void addFeedbackPicture(String key, byte[] data) {
        List<byte[]> pictureList;
        this.pictureNum++;
        if (this.pictureMap.containsKey(key)) {
            pictureList = this.pictureMap.get(key);
        } else {
            pictureList = new ArrayList<>();
            this.pictureMap.put(key, pictureList);
        }
        pictureList.add(data);
    }

    public int getPictureNum() {
        return this.pictureNum;
    }

    public void addFeedbackPicture(String key, String url) {
        this.extend.add(key, url);
    }
}
